package graph.main;

import graph.io.IOHandler;
import graph.model.Graph;

public class Main {
	public Main( String fileName ) {
		System.out.println( "== STARTING FOR FILE "+ fileName +" ==" );
		Graph graph = new Graph();
		IOHandler io = new IOHandler( graph );
		System.out.println( "== GENERATING GRAPH ==" );
		System.out.println( "== READING "+ fileName +" ==" );
		io.readFile( fileName );
		System.out.println( "== GRAPH GENERATED ==" );
//		System.out.println( "> Depth First for Vertex A:" );
//		genericGraph.printDepthFirst( "A" );
//		System.out.println( "> Breadth First for Vertex A:" );
//		genericGraph.printBreadthFirst( "A" );
//		System.out.println( " " );
//		System.out.println( "> Depth First for Vertex C:" );
//		genericGraph.printDepthFirst( "C" );
//		System.out.println( "> Breadth First for Vertex C:" );
//		genericGraph.printBreadthFirst( "C" );
//		System.out.println( " " );
		graph.print();
	}
	
	public static void main( String[] args ) {
		new Main( "src/graph/files/graafblokboek.txt" );
		new Main( "src/graph/files/test.txt" );
	}
}
